package com.bestom.videoplay.listener;

import android.media.MediaPlayer;

public class MediaPlayerListener implements MediaPlayer.OnBufferingUpdateListener {

    private int bufferPercentage;

    @Override
    public void onBufferingUpdate(MediaPlayer mediaPlayer, int i) {
        bufferPercentage = i;
    }

    public int getBufferPercentage(){
        return bufferPercentage;
    }
}
